pulse2jack: Add the option to use a user-selected config file#308
pulse2jack: Add the option to use a user-selected config file#308mead0w0 wants to merge 1 commit intofalkTX:masterfrom
Conversation
The pulse configuration file is selected from, in order: - An environment variable - CADENCE_PULSE2JACK_PLAY/CADENCE_PULSE2JACK_PLAYREC - A file - ~/.config/Cadence/pulse2jack/play[+rec].pa - The original default file - $INSTALL_PREFIX/share/cadence/pulse2jack/play[+rec].pa This is a partial solution for falkTX#234
|
One thing to note is that because of the way Cadence detects pulse[0][1], the Pulse bridge tab will say "pulse is started but not bridged" even if you click the bridge button if you do not have a sink with the default client name "PulseAudio JACK Sink". This didn't seem like an easy thing to fix unless we wanted to replace it with another hack, like checking the output of We could remove the check for whether pulse is bridged and just output whether there was an error inside cadence-pulse2jack when starting pulse I suppose. [0] Line 1231 in 41ab083 [1] Line 1621 in 41ab083 |
The pulse configuration file is selected from, in order:
I know there are a couple PRs for #234 that have stalled out and I thought this might be an easier most-of-the-way solution to get merged. I'm using it myself currently.
If anyone wants to test it out, you can put the cadence-pulse2jack file in e.g. ~/bin and prefix it to your $PATH in your bashrc, making sure to start cadence from the command line or somewhere else with the correct $PATH.